package KI;

import generated.PositionType;

public class Position extends PositionType {
	public Position(){
		
	}
	
	public Position(PositionType pPos){
		this.col = pPos.getCol();
		this.row = pPos.getRow();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + col;
		result = prime * result + row;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Position other = (Position) obj;
		if (col != other.col)
			return false;
		if (row != other.row)
			return false;
		return true;
	}

	public String toString(){
		String s = row +  " " + col;
		return s;
	}
}
